#include "stdafx.h"

#include "media/MediaManager.hpp"

TEST(MediaManagerTest, load)
{
	int size = MediaManager<sf::Image>::getInstance().getMediaLoadedAmout();
	sf::Image image = MediaManager<sf::Image>::getInstance().getMedia("../JIN4/media/unit test.png"); 
	int size2 = MediaManager<sf::Image>::getInstance().getMediaLoadedAmout();
	EXPECT_EQ(size + 1, size2);
	image = MediaManager<sf::Image>::getInstance().getMedia("../JIN4/media/unit test.png");
	size = MediaManager<sf::Image>::getInstance().getMediaLoadedAmout();
	EXPECT_EQ(size, size2);
}